<?php if(!empty($subvo)){
    $v = $subvo;
    $subvo = '';
}
if(!empty($subsubvo)){
    $v = $subsubvo;
    $subsubvo = '';
}
?>

<div class="viewBox myBox<?php echo $v['id'];?>" <?php if($_SESSION[C('USER_AUTH_KEY')]){?>sortID="<?php echo $v['sort'];?>" modulesID="<?php echo $v['id'];?>" title="<?php echo $v['title'];?>" deleteUrl="<?php echo U('/Admin/Modules/delete',array('id'=>$v['id']));?>" settingUrl="<?php echo U('/Admin/Modules/edit',array('id'=>$v['id']));?>" isEdit="0"<?php }?>>
  <?php if(!empty($v['dataname'])){
                $v['content'] = $v['dataname'];
                
        }else{
            $v['content'] = unserialize($v['content']);
        }
         ?>
  <div class="panel panel-primary">
    <?php include(TMPL_PATH.'Home/TemplateDefault/Public-Moduletitle'.C('TMPL_TEMPLATE_SUFFIX')); ?>
    <div class="panel-body">
      <div class="widget-container fluid-height">
        <div class="widget-content padded">
          <ul class="gallery-grid clearfix">
            <?php foreach($v['content'] as $key => $p):?>
            <?php if($v['picDisplayCount'] > $key){?>
            <li <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?> class="ListLi viewBoxCss">
              <figure> <img <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?> class="ListImg viewBoxCss" src="<?php echo getThumbPath($p['img_url'],true);?>" alt="<?php echo $p['title'];?>">
                <div class="caption viewBoxCss" <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?>>
                  <h3 class="viewBoxCss ListH3" <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?>> <a class="Atitle viewBoxCss" href="<?php echo getArtLink($p['id']);?>"><?php echo cut_str($p['title'],$v['listTitleLength'],0);?></a> </h3>
                  <span class="ListContent viewBoxCss" <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?>><?php echo cut_content($p,$v['listContentLength'], 0, $v['listContentOut']); ?></span><span class="datetime"><?php echo date('Y-m-d', $p['datetime']);?></span></div>
              </figure>
            </li>

          <?php }?>
          <?php endforeach; ?>
          </ul>
        </div>
      </div>
      <div class="clearfix"></div>
      <?php if($v['display_pages']>0){echo $pages;}?>
    </div>
  </div>
</div>
